]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
shellMountOperation: Remove unused functions
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 31 Jan 2019 23:53:51 +0000 (00:53 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 1 Jul 2019 21:09:49 +0000 (21:09 +0000)
Spotted by eslint.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/606

js/ui/shellMountOperation.js

index 73f1ceee3eb01f70ee98c7dce49d4f6e851b120b..f7c470f710e26c50e5297aa9f7e51f7c4a3571b9 100644 (file)
@@ -20,16 +20,6 @@ var WORK_SPINNER_ICON_SIZE = 16;
 const REMEMBER_MOUNT_PASSWORD_KEY = 'remember-mount-password';
 
 /* ------ Common Utils ------- */
-function _setLabelText(label, text) {
-    if (text) {
-        label.set_text(text);
-        label.show();
-    } else {
-        label.set_text('');
-        label.hide();
-    }
-}
-
 function _setButtonsForChoices(dialog, choices) {
     let buttons = [];
 
@@ -50,11 +40,6 @@ function _setLabelsForMessage(content, message) {
     content.body = labels.join('\n');
 }
 
-function _createIcon(gicon) {
-    return new St.Icon({ gicon: gicon,
-                         style_class: 'shell-mount-operation-icon' })
-}
-
 /* -------------------------------------------------------- */
 
 var ListItem = class {